package com.miao.test;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author <a href="https://gitee.com/a-tom-is-cry">Xing</a>
 * @Date 2025/7/26 0:03
 * @Description
 */
public class DemoDataListener extends AnalysisEventListener<UserInfo> {
    private static final Logger log = LoggerFactory.getLogger(DemoDataListener.class);



    @Override
    public void invoke(UserInfo dto, AnalysisContext analysisContext) {
        log.info("解析到一条数据：{}",dto.toString());

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        log.info("所有数据解析完成！");
    }
}
